<section>
  <mat-tab-group>
    <mat-tab>
      <ng-template mat-tab-label>One</ng-template>
      <mat-form-field>
        <mat-label>Autosize textarea</mat-label>
        <textarea matInput cdkTextareaAutosize>
          This is an autosize textarea, it should adjust to the size of its content.
        </textarea>
      </mat-form-field>
    </mat-tab>
    <mat-tab>
      <ng-template mat-tab-label>Two</ng-template>
      Second tab's content
    </mat-tab>
    <mat-tab>
      <ng-template mat-tab-label>Three</ng-template>
      Third tab's content
    </mat-tab>
  </mat-tab-group>
</section>
